{% extends "navigator_base.html" %}
{% block content %}

{% if not posts or not posts|length %}
	<h2>没有文章！</h2>
{% else %}

{% for post in posts %}
<div class="post">
	<h2 class="title"><a href="/post/{{ post.permalink }}.html">{{ post.title }}</a></h2>
	<div class="entry">
		{{ post.excerpt|linebreaks }}<a href="/post/{{ post.permalink }}.html">继续阅读...</a>
	</div>
	<p class="meta">发表时间 {{post.published|datetz:"Y/m/d H:i"}} &nbsp;|&nbsp; {% for cat in post.categories %}
		<a href="/category/{{ cat.category_url}}/">{{ cat.category_name }}</a>
		{% endfor %} &nbsp;|&nbsp; <a href="/post/{{ post.permalink }}.html#comments">{{ post.num_comments }} 条评论</a>{% if 6|power %} | <a href="/admin/posts/edit?id={{ post.key }}" class="edit">Edit</a> {% endif %}
		</p>
</div>


	{% endfor %}
	{% if navigation.previous or navigation.next %}
	<div id="nav_post">
		{% if navigation.next %}
			<div id="nav_next">	
				<a href="/tag/{{keyword}}/{{navigation.next}}/" class="nav"><< 下一页</a>
			</div>
		{% endif %}	
	
		{% if navigation.previous %}
		<div id="nav_next">
			<div id="nav_prev">
				<a href="/tag/{{keyword}}/{{navigation.previous}}/" class="nav">上一页 >></a>
			</div>
		</div>
		{% endif %}
	</div>
	
	{% endif %}
{% endif %}

{% block comments %}

{% endblock %}


{% endblock %}
